#include"Stack.h"

int main()
{
	Stack st;
	StackInit(&st);

	StackPush(&st, 1);
	printf("%d ", StackPop(&st));

	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);
	printf("%d ", StackPop(&st));

	StackPush(&st, 6);
	printf("%d ", StackPop(&st));


	while (!StackEmpty(&st))
	{
		printf("%d ", StackPop(&st));
	}

	StackDestroy(&st);
	return 0;
}